package com.bean;

import lombok.Data;

import java.sql.Date;

@Data
public class User {
    private int id;             // 用户编号
    private String username;    // 用户名
    private String password;    // 用户密码
    private String gender;      // 用户性别
    private String email;       // 用户邮箱
    private Date time;          // 注册时间

    // 无参构造
    public User() {
    }

    // 带参构造
    public User(String username, String password, String gender, String email) {
        this.username = username;
        this.password = password;
        this.gender = gender;
        this.email = email;
    }
}
